<?php
include '../connect/common_start.php';
if(isset($_REQUEST['user']))
{
	$user=$_REQUEST['user'];
	if(isset($_REQUEST['pass']))
	{
		$pw=$_REQUEST['pass'];
		$result=mysql_query("SELECT * FROM member m WHERE (m.mem_id='$user' AND m.mem_pswd='$pw' AND m.status='1')");
		if(mysql_num_rows($result)>0){
			$r = mysql_fetch_assoc($result);
			echo json_encode($r);
		}else{
			echo '{}';
		}
	}
}
include '../connect/common_end.php';
?>
